// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()

const db = cloud.database()
// 云函数入口函数
exports.main = async (event, context) => {
  return await db.collection('jihua').doc(event.dataId).update({
    data: {
      trueday: event.trueday,
      whenday: event.whenday,
      whenday2: event.whenday2,
      dailywhenday1: event.dailywhenday1,
      dailywhenday2: event.dailywhenday2,
      recycleday: event.recycleday,
      realityday: event.realityday,
      dakatab: event.dakatab,
      dakatab2: event.dakatab2,
      finish: event.finish,
      userimg1: event.userimg1,
      guangchantab: event.guangchantab,
      jinyong: event.jinyong,
      flag: event.flag,
      who:event.who,
      continuationday: event.continuationday
    }
  })

}